package com.caigou.modules.service.widget

import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.view.Window
import android.widget.Button
import android.widget.EditText
import com.caigou.modules.service.R

/**
 * @author #Suyghur.
 * Created on 2021/11/11
 */
class WebsiteCollectDialog constructor(context: Context) : Dialog(context) {

    lateinit var etUrl: EditText
    lateinit var etDesc: EditText
    lateinit var btnCancel: Button
    lateinit var btnConfirm: Button

    init {
        setCanceledOnTouchOutside(false)
        window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
        requestWindowFeature(Window.FEATURE_NO_TITLE)
        initView()
    }

    private fun initView() {
        setContentView(R.layout.add_website_collect_dialog)
        etUrl = findViewById(R.id.website_collect_dialog_et_url)
        etDesc = findViewById(R.id.website_collect_dialog_et_desc)
        btnCancel = findViewById(R.id.website_collect_dialog_btn_cancel)
        btnConfirm = findViewById(R.id.website_collect_dialog_btn_confirm)
    }
}